package clang.ir;

import fixedpoint.DataflowException;

public class Divide extends Operator {

    private long divisor;

    public Divide() {
        child = new Node[1];
    }

    public long getDivisor() {
        return divisor;
    }

    public void setDivisor(long divisor) {
        this.divisor = divisor;
    }

    @Override
    public String getRuntimeExpression() throws DataflowException {
        return child[0].getRuntimeValueWithWrap() + " / " + toCLangIntegerLiteral(divisor);
    }
}
